package handler

import (
	"context"
	pb "github.com/zhang-jianqiang/user/proto"
	"log"
)

type User struct{}

func (e *User) Info(c context.Context, req *pb.InfoRequest, res *pb.InfoResponse) error {
	log.Println(req.Username)
	res.Uid = 1
	res.Username = req.Username
	res.Realname = "测试用户名"
	res.Sex = 1
	return nil
}
